/**
 * author:Administrator
 * date:2016/1/6
 * desc:TODO
 */

'use strict';

var Model = require('../model/Ticket.js');

let CommonDao = require('./_commonDao.js');
class TheDao extends CommonDao {
  constructor() {
    super(Model);
  }

  * findByCode(code) {
    return yield this.findOne({code: code});
  }
}
module.exports = new TheDao();
